URL 生成

我们推荐使用助手函数 url 进行 url 的生成:

url('portal/List/index',['id'=>1,'name'=>'cmf5']);

url('portal/List/index','id=1&name=cmf5');

生成美化的 URL

这个功能要在后台URL 美化里增加相应的 url美化规则,用法和 url方法类似 ``` cmf_url('portal/List/index',['id'=>1,'name'=>'cmf5']);

cmf_url('portal/List/index','id=1&name=cmf5');



###### 指定 url 后缀名

url('portal/List/index','id=1&name=cmf5','shtml');


###### 自动生成域名

url('portal/List/index','id=1&name=cmf5','shtml',true);

// 不带后缀名 url('portal/List/index','id=1&name=cmf5',false,true); ```

results matching ""

    No results matching ""